 /*      SClassString.h
 *
 *      Copyright 2009-2010 virpool <virpool@ukrpost.ua>
 *
 *      This program is free software; you can redistribute it and/or modify
 *      it under the terms of the GNU General Public License as published by
 *      the Free Software Foundation; either version 2 of the License, or
 *      (at your option) any later version.
 *
 *      This program is distributed in the hope that it will be useful,
 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *      GNU General Public License for more details.
 *
 *      You should have received a copy of the GNU General Public License
 *      along with this program; if not, write to the Free Software
 *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 *      MA 02110-1301, USA.
 */

#ifndef __SCLASSSTRING_H_
#define __SCLASSSTRING_H_

#include <iostream>
#include "SObject.h"

class SClassString: public SObject
{
	std::string value;

	static int ToString(SObject*, s_param*, param_list*);
	static int ConvToInt(SObject*, s_param*, param_list*);
	static int Split(SObject* obj, s_param* res, param_list* args);
	static int Length(SObject* obj, s_param* res, param_list* args);
	static int Invert(SObject* obj, s_param* res, param_list* args);
	static int IndexOf(SObject* obj, s_param* res, param_list* args);
	static int LastIndexOf(SObject* obj, s_param* res, param_list* args);
	
public:
	SClassString(std::string name);
	virtual ~SClassString();
	std::string Get() { return value; }
	void Set(std::string value) { this->value = value; }
};

#endif /* __SCLASSSTRING_H_ */
